import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import nav from '@/components/Nav';
import UploadFile from "../components/file/UploadFile";
import Directory from "../components/file/Directory";
import UploadVideo from "../components/file/UploadVideo";
import EditImg from "../components/EditImg";
import Eraser from "../components/Eraser";
import TryTwoPicture from "../components/TryTwoPicture";
export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'landing-page',
    //   component: require('@/components/LandingPage').default
    // },
    {
      path: '/',
      name: 'nav',
      component: nav,
      children: [
        {
          path: 'image',
          name: 'image',
          component: UploadFile
        },
        {
          path: 'directory',
          name: 'directory',
          component: Directory
        },
        {
          path: 'video',
          name: 'video',
          component: UploadVideo
        },
        {
          path: 'edit',
          name: 'edit',
          component: Eraser
        },
        {
          path: 'more',
          name: 'more',
          component: EditImg
        }
      ]
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
